﻿using System;
using System.Windows.Forms;

namespace DCS.AdministrationClient.Forms
{
    public sealed partial class WaitForm : Form
    {
        public WaitForm() : this("")
        {
        }

        public WaitForm(string progessCaption) : this(progessCaption, "")
        {
            InitializeComponent();
            ProgressCaption = progessCaption;
        }

        public WaitForm(string progessCaption, string caption)
        {
            InitializeComponent();
            Text = caption;
            ProgressCaption = progessCaption;
        }

        public string ProgressCaption
        {
            get { return dcsProgress.Text; }
            set { dcsProgress.Text = value; }
        }

        private void WaitFormLoad(object sender, EventArgs e)
        {
            Activate();
        }
    }
}